<?php
$modules = [];
$dirs = glob('modules'.DIRECTORY_SEPARATOR.'*');
foreach ($dirs as $d) {
	if (is_dir($d)) {
		$d = basename($d);
		$modules[$d] = ['class' => 'wechat\modules\\'.$d.'\Module'];
	}
}
return $modules;
